<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ page import="Singleton.Application" %>
<%@ page import="Singleton.Local" %>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.DateFormat"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%
	if (request.getParameter("local")!=null ){
		if (request.getParameter("local").indexOf("-")>0) {
			String[] localTab = request.getParameter("local").split("-");
			Singleton.Local.setLocal(localTab[0],localTab[1]);
		} else {
			Singleton.Local.setLocal("","");
		}
	}
%>
<% response.setCharacterEncoding("iso-8859-1"); request.setCharacterEncoding("iso-8859-1"); %>
<% if (request.getParameter("view")!=null) { 
	Singleton.Application.setTitle(Local.get("title_"+request.getParameter("view")));
	}
%>
<% String title = Singleton.Application.getTitle(); %>
<% java.util.GregorianCalendar today = new java.util.GregorianCalendar(); %>
<% today.setTime(new java.util.Date()); %>
<%
	Singleton.Application.setContextPath(request.getRealPath(""));
	Singleton.Application.init();
	String libPath = request.getContextPath()+"/lib";
	Date dates= new Date();
	DateFormat dateFormate = new SimpleDateFormat("dd/MM/yyyy");
	String date= dateFormate.format(dates);
%>


      
